package com.zxl.grocerymicroservicewechatmeal.service.impl;

import com.zxl.grocerymicroservicewechatmeal.dataobject.SellerInfo;
import com.zxl.grocerymicroservicewechatmeal.repository.SellerInfoRepository;
import com.zxl.grocerymicroservicewechatmeal.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Lzx
 * @Description:
 * @Date: Created in 16:12 2017/11/24
 * @Modified By:
 */
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerInfoRepository repository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return repository.findByOpenid(openid);
    }
}

